<template>
  <van-nav-bar style="background-color: #3ddadd" @click-left="onClickLeft">
    <template #left>
      <van-icon style="color: #ffffff;" name="arrow-left"/>
    </template>
    <template #title>
      <span style="color: #ffffff;">{{ props.title }}</span>
    </template>
  </van-nav-bar>
</template>

<script setup>
const onClickLeft = () => history.back();
const props = defineProps({
  title: {
    type: String,//数据类型
    required: true,//是否为必选项
  }
})

</script>

<style scoped lang="scss">

</style>
